/*
 * @Descripttion: 
 * @version: 
 * @Author: congsir
 * @Date: 2021-07-16 22:28:25
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-07-21 23:06:22
 */

#ifndef __CONFIG_H_
#define __CONFIG_H_


#define config_address (0)
#define ble_control_time_address (100)
struct myoled
{
    char mqtt_connect_flag[30];
    char mqtt_rcv[100];
    char ble_scan_info[100];
    double ble_battery;
    uint32_t countdown;
    int ble_HighWater;
    int oled_HighWater;
    int wifi_HighWater;
    bool night_mode;
    int touchread_num;
    int longtouch_flag;
} oled_show = {"loading...", NULL, NULL, 0, 0, 0, 0, 0, false, 0, 0};

struct mydev
{
    char wifi_ssid[20];     //Xiaomi_A29E
    char wifi_password[20]; //12345678
    char esp32_chipid[22];
    char ble_control_time[20];
    char ble_control_mac[6]; // "56:b5" "3c:20" "51:fd"

} dev_info = {};

// width: 32, height: 32
const unsigned char wifi_logo[] U8X8_PROGMEM = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0xff, 0x7f, 0x00, 0x80, 0x1f, 0xf8, 0x01, 0xe0, 0x03, 0xe0, 0x03, 0xe0, 0x01, 0x80, 0x07, 0x70, 0xe0, 0x03, 0x07, 0x00, 0xf8, 0x0f, 0x02, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0x1f, 0x78, 0x00, 0x00, 0x0f, 0xf0, 0x00, 0x00, 0x03, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
// width: 32, height: 32
const unsigned char ble_logo[] U8X8_PROGMEM = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0x88, 0x0f, 0x00, 0x00, 0x9c, 0x1d, 0x00, 0x00, 0xb8, 0x39, 0x00, 0x00, 0xf0, 0x1d, 0x00, 0x00, 0xe0, 0x0f, 0x00, 0x00, 0xc0, 0x07, 0x00, 0x00, 0xc0, 0x07, 0x00, 0x00, 0xe0, 0x0f, 0x00, 0x00, 0xf0, 0x1f, 0x00, 0x00, 0xf8, 0x1d, 0x00, 0x00, 0x9c, 0x1d, 0x00, 0x00, 0x88, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
// width: 79, height: 80
const unsigned char config_logo[] U8X8_PROGMEM = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x01, 0x80, 0x33, 0x30, 0x0f, 0x06, 0x18, 0xe6, 0x00, 0x40, 0x01, 0x80, 0x33, 0x30, 0x0f, 0x07, 0x18, 0xe6, 0x00, 0x40, 0xf9, 0x9f, 0xff, 0x03, 0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4f, 0x01, 0x00, 0x3f, 0x0f, 0x03, 0x18, 0x60, 0x1e, 0x30, 0x40, 0x01, 0x80, 0xbf, 0x0f, 0x07, 0x1c, 0xe0, 0x3e, 0x38, 0x40, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f};
// width: 16, height: 16
const unsigned char process[] U8X8_PROGMEM = {0x03, 0x03, 0x87, 0x07, 0x8f, 0x0f, 0x1e, 0x1f, 0x3c, 0x3e, 0x78, 0x7c, 0xf8, 0xf8, 0xf0, 0xf1, 0xf0, 0xf1, 0xf8, 0xf8, 0x7c, 0x7c, 0x3e, 0x3e, 0x1f, 0x1f, 0x8f, 0x0f, 0x87, 0x07, 0x03, 0x03};
#endif